Mergado\Service\External\Google\GoogleAnalytics\GA4\Ga4ServiceIntegration D

Total Complexity 151
Dependencies 18
Dependents 3
Total lines 859
Lines of code 604
Logical lines of code 308
Comment lines 64
Methods 35
Properties 2

Methods 35

Method Rating Maintainability Complexity Lines of code
productDetailView()
B
37 19 75
addToCart()
A
38 13 69
purchase()
A
39 9 67
getCartProductAppliedCoupons()
A
52 11 22
getOrderProductAppliedCoupons()
A
55 11 18
viewItemList()
A
53 8 21
refundPartial()
S
49 6 31
getShippingMethods()
S
57 6 17
getCartEventItemsObject()
S
49 5 32
orderStatusChanged()
S
56 5 17
getCartValue()
S
60 4 14
getOrderCouponData()
S
58 3 16
refundFull()
S
59 3 15
pushRefundEvent()
S
61 3 13
getPaymentMethods()
S
63 3 11
insertHeaderAdmin()
S
69 3 6
removeFromCart()
S
59 2 15
search()
S
65 3 9
addShippingInfo()
S
64 3 10
getProductCategories()
S
64 3 10
getFormattedAnalyticsCode()
S
67 3 7
getPurchaseProductPrices()
S
59 2 13
getCartProductPrices()
S
59 2 13
addToCartAjax()
S
61 2 12
beginCheckout()
S
70 2 7
addCartData()
S
71 2 5
viewCart()
S
66 2 9
actionShippingRate()
S
73 2 5
getProductPrices()
S
63 2 10
getProductId()
S
67 2 8
getDiscount()
S
77 2 3
addPaymentInfo()
S
68 2 7
getCartGlobalCoupon()
S
79 1 3
getCartDataObject()
S
65 1 10
__construct()
S
76 1 4